package a05_mediator;

public abstract class Mediator {

	private AbstractColleague colleagueA;
	private AbstractColleague colleagueB;

	public Mediator(AbstractColleague ca, AbstractColleague cb) {
		this.setColleagueA(ca);
		this.setColleagueB(cb);
	}

	abstract void AeffectB();

	abstract void BeffactA();

	/**
	 * @return the colleagueA
	 */
	public AbstractColleague getColleagueA() {
		return colleagueA;
	}

	/**
	 * @param colleagueA the colleagueA to set
	 */
	public void setColleagueA(AbstractColleague colleagueA) {
		this.colleagueA = colleagueA;
	}

	/**
	 * @return the colleagueB
	 */
	public AbstractColleague getColleagueB() {
		return colleagueB;
	}

	/**
	 * @param colleagueB the colleagueB to set
	 */
	public void setColleagueB(AbstractColleague colleagueB) {
		this.colleagueB = colleagueB;
	}
}
